package com.platform.api.bzproject.service;

import com.platform.api.bzproject.model.BzDeductionRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 扣量记录表 服务类
 * </p>
 *
 * @author guoshao
 * @since 2022-02-23
 */
public interface IBzDeductionRecordService extends IService<BzDeductionRecord> {

    BzDeductionRecord getBzDeductionRecordByUserId(@Param("userId")String userId);

    int saveOrUpdateDeductionRecord (String parentId,String userId,int baseCount,boolean isAdd);

    boolean deduction(String userId,String parentUserId,String appid);

}
